package cn.tedu.mm.basic.service.impl;

import cn.tedu.mm.basic.dao.persist.repository.IAnnouncementRepository;
import cn.tedu.mm.basic.pojo.vo.ListAnnouncementVO;
import cn.tedu.mm.basic.service.IAnnouncementService;
import cn.tedu.mm.common.pojo.vo.PageData;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class AnnouncementService implements IAnnouncementService {
    @Autowired
    private IAnnouncementRepository announcementRepository;
    @Override
    public PageData<ListAnnouncementVO> listAnnouncement(Integer pageNum, Integer pageSize) {
        log.warn("页面:"+pageNum+","+pageSize);
        return announcementRepository.listAnnouncement(pageNum,pageSize);
    }
}
